import { ClassConstructor } from '@quick-toolkit/class-mirror';

export class FeatureFormData<T extends object> extends FormData {
  constructor(
    public type: ClassConstructor,
    values: T,
    public action?: string,
    public method?: string,
  ) {
    super();
    for (const name in values) {
      this.set(name, values[name] as string);
    }
  }
}
